package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.settlement.system.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
* <p>
* 通过计算的字段配置
* </p>
*
* @author huangrensen
* @since 2024-04-25
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysCalculateColumn extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private String id;


    /**
    * 关联ID
    */
    private String linkId;


    /**
    * 计算规则
    */
    private String calculateRule;


    /**
    * 单据类型
    */
    private String billType;


    /**
    * 原始字段
    */
    private String sourceColumn;

    @TableField(exist = false)
    private List<SysColumnMatchCondition> conditions;
}
